projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04099e9
)
arm: imx: hab: Print CSF based on IVT descriptor
author
Bryan O'Donoghue
<
[email protected]
>
Fri, 12 Jan 2018 12:40:06 +0000
(12:40 +0000)
committer
Stefano Babic
<
[email protected]
>
Sun, 14 Jan 2018 16:26:30 +0000
(17:26 +0100)
The IVT gives the absolute address of the CSF. There is no requirement for
the CSF to be located adjacent to the IVT so lets use the address provided
in the IVT header instead of the hard-coded fixed CSF offset currently in
place.
Signed-off-by: Bryan O'Donoghue <
[email protected]
>
Cc: Stefano Babic <
[email protected]
>
Cc: Fabio Estevam <
[email protected]
>
Cc: Peng Fan <
[email protected]
>
Cc: Albert Aribaud <
[email protected]
>
Cc: Sven Ebenfeld <
[email protected]
>
Cc: George McCollister <
[email protected]
>
Cc: Breno Matheus Lima <
[email protected]
>
Tested-by: Breno Lima <
[email protected]
>
Reviewed-by: Fabio Estevam <
[email protected]
>
arch/arm/mach-imx/hab.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-imx/hab.c
b/arch/arm/mach-imx/hab.c
index a8e3e79c3bea07a1177763567b7de061a7ce3662..229c723ba261d909735b1244a8a7bfbeb962dc96 100644
(file)
--- a/
arch/arm/mach-imx/hab.c
+++ b/
arch/arm/mach-imx/hab.c
@@
-466,8
+466,7
@@
int authenticate_image(uint32_t ddr_start, uint32_t image_size,
print_buffer(ivt_addr, (void *)(ivt_addr), 4, 0x8, 0);
puts("Dumping CSF Header\n");
- print_buffer(ivt_addr + IVT_SIZE, (void *)(ivt_addr + IVT_SIZE), 4,
- 0x10, 0);
+ print_buffer(ivt->csf, (void *)(ivt->csf), 4, 0x10, 0);
#if !defined(CONFIG_SPL_BUILD)
get_hab_status();